<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%String path = request.getContextPath();%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>合同资料模板导出页面</title>
    <style type="text/css">
    </style>
    <jsp:include page="../../import.jsp" flush="true"/>
</head>

<body class="iframeBody">
<div class="Wrapper">
	<div class="fieldset1 tabel_col tabel_col_s clearFix">
		<div class="sqPanel">
			<!-- <div class="sqPanel_head inL">
			    <span>项目合同模板下载</span>
			</div> -->
            <div class="sqPanel_body">
			    <div id="extconGrid" class="sq-grid"></div>
            </div>
		</div> 
</div>
<input type="text" style="display: none;" id="prjId" name="prjId" value="${prjId}">

<script type="text/javascript">
    var prjId = ${prjId};
    $(function () {
        initGrad();
    });
    function initGrad(){
    	$("#extconGrid").ligerGrid({
            url: '<%=path%>/extcon/sysExpTmpl/initSysExpTmplList.do?prjId='+prjId,
            method: 'get',
            columns: [
                {display: '模板名称', name: 'tmplNm',align: 'center', minWidth: 100, enabledSort: false},
                {
                	display: '操作',
 	                isSort: false,
 	                width: 250,
 	                render: function (rowdata, rowindex, value){
 	                	  var h="";
 	                        h='<a class="sq-button-hasicon" href="';
 	                        h+='<%=path%>/extcon/sysExpTmpl/toCreateDoc.do';
 	                        h+='?expTmplPath='+rowdata.expTmplPath+'&tmplFileNm='+rowdata.tmplFileNm+'&tmplNm='+rowdata.tmplNm;
 	                        h+='&fileTypCd='+rowdata.fileTypCd+'&isOnlyTemp='+rowdata.isOnlyTemp;
 	                        h+='&prjId='+prjId+'&grpCd='+rowdata.grpCd;
 	                        h+='"><i class="sqBtnIco_4"></i>下载</a>';
 	                    return h;
 	                }
                }
            ],
            root: 'rows',
            hideLoadButton : true,
            width: '100%',
            height: '100%',
            isScroll: false,
            rownumbers:true,  //显示序号
            checkbox: false,
            allowUnSelectRow:true,
            alternatingRow: false,
            frozen: false,
            usePager: false,
            onAfterShowData: function ()
            {
                $('#extconGrid').rowspan('tmplFileNm');
            }
        });
    }
    
    function downFile(_url){
        //window.location.href=_url;
        window.open(_url);
    }
    

</script>
</div>
</body>
</html>
